<!--
 * @Author: fengxx
 * @Date: 2025-09-22 16:18:33
 * @LastEditors: fengxx
 * @LastEditTime: 2025-09-22 16:21:29
-->
<script setup lang="ts">
import { ref } from 'vue'
import CounterDisplay from './CounterDisplay.vue'
import CounterControls from './CounterControls.vue'

const count = ref(0)

const increment = () => {
  count.value++
}

const minus = () => {
  count.value--
}
</script>
<template>
  <CounterDisplay :count />
  <CounterControls @increment="increment" @minus="minus" />
</template>
